<%@ page import="gdepot.AccountBank" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'accountBank.label', default: 'AccountBank')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><g:link controller="accountBank" action="index">User</g:link></li>
        </ol>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="alert alert-warning">
        <a href="#" class="close" data-dismiss="alert">
        &times;
        </a>
        <strong>${flash.message}</strong>
    </div>
</g:if>
<sec:ifAllGranted roles="ROLE_SYSTEM_MANAGER">
    <div class="row" style="padding-bottom:10px">
        <div class="container">
            <div class="col-sm-9"></div>

            <div class="col-sm-3" align="right" style="padding:0px">
                <ul class="list-inline">
                    <li>
                        <g:form url="[resource: accountBankInstance, action: 'delete']" method="DELETE">
                            <g:actionSubmit class="btn btn-default btn-sm" action="delete" value="删除"/>
                        </g:form>
                    </li>
                    <li><g:link action="edit" resource="${accountBankInstance}" class="btn btn-default btn-sm">编辑</g:link></li>
                    <li><g:link action="create" class="btn btn-default btn-sm">新建</g:link></li>
                </ul>
            </div>
        </div>
    </div>
</sec:ifAllGranted>


<div class="role">
    <div class="container">

        <table class="table table-bordered table-hover">
            <tr>
                <td width="30%">手机号</td>
                <td width="70%">    <g:if test="${accountBankInstance?.cellphone}"><g:fieldValue bean="${accountBankInstance}" field="cellphone"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">证件类型</td>
                <td width="70%">    <g:if test="${accountBankInstance?.certificateType}"><g:fieldValue bean="${accountBankInstance}" field="certificateType"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">证件号码</td>
                <td width="70%">    <g:if test="${accountBankInstance?.idCard}"><g:fieldValue bean="${accountBankInstance}" field="idCard"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">状态</td>
                <td width="70%">    <g:if test="${accountBankInstance?.status}"><g:fieldValue bean="${accountBankInstance}" field="status"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">是否是主卡</td>
                <td width="70%">    <g:if test="${accountBankInstance?.isPrimary}"><g:formatBoolean boolean="${accountBankInstance?.isPrimary}" /></g:if></td>
            </tr>
            <tr>
                <td width="30%">银行卡号</td>
                <td width="70%">    <g:if test="${accountBankInstance?.bankCardNo}"><g:fieldValue bean="${accountBankInstance}" field="bankCardNo"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">账户名</td>
                <td width="70%">    <g:if test="${accountBankInstance?.fullName}"><g:fieldValue bean="${accountBankInstance}" field="fullName"/></g:if></td>
            </tr>
            <tr>
                <td width="30%">创建时间</td>
                <td width="70%"><g:if test="${accountBankInstance?.createdDate}"><g:formatDate date="${accountBankInstance?.createdDate}" /></g:if></td>
            </tr>
            <tr>
                <td width="30%">修改时间</td>
                <td width="70%"><g:if test="${accountBankInstance?.modifiedDate}"><g:formatDate date="${accountBankInstance?.modifiedDate}" /></g:if></td>
            </tr>
            <tr>
                <td width="30%">所属账户</td>
                <td width="70%"><g:if test="${accountBankInstance?.account}"><g:link controller="users"
                                                                                     action="show"
                                                                                     id="${accountBankInstance?.account?.id}">${accountBankInstance?.account?.encodeAsHTML()}</g:link></g:if></td>
            </tr>

            <tr>
                <td width="30%">所属银行</td>
                <td width="70%"><g:if test="${accountBankInstance?.bank}"><g:link controller="bank" action="show"
                                                                                  id="${accountBankInstance?.bank?.id}">${accountBankInstance?.bank?.encodeAsHTML()}</g:link></g:if></td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
